Declarative Services – Dependency Injection, OSGi Style Felix Meschberger |  Sr. Computer Scientist, Adobe Systems Incorporated
About Felix Meschberger Senior Computer Scientist
fmeschbe@adobe.com
http://blog.meschberger.ch
OSGi Implementations @ Apache Felix Declarative Services
Configuration Admin
Metatype Services VP Apache Sling
OSGi Alliance Supporter
Contents Dependency Injection
Implementations for OSGi
Declarative Services 1.0
Issues
Declarative Services 1.1
Maven SCR Plugin
Apache Felix Extensions
Dependency Injection Loose Coupling “ Don't call us, we'll call you” Easier Testing Inject different implementations Popular in Spring Framework
Traditionally Descriptor Based
Current Trend: Java Annotations (JSR-330)
Implementations for OSGi Apache Felix Dependency Manager
OSGi Declarative Services
Apache Felix iPOJO (Evolution of Declarative Services)
Spring DM
OSGi Blueprint (Evolution of Spring DM)
Peaberry (based on Google Guice)
… probably more …
Declarative Services Version 1.0, Compendium R4
Version 1.1, Compendium R4.2
XML Descriptor Based
Lifecycle Management
Dependency Injection (Services)
Configuration Support
Lifecycle Management Load Descriptors on Bundle Start
Instantiation
Configuration
Activation
Dependency Injection

Declarative Services - Dependency Injection OSGi Style